import { useLocalStorageState } from 'ahooks';

export const useLocalData = () => {
    const [token,setToken] = useLocalStorageState<string | undefined>(
        "AppToken"
    )

    const [account,setAccount] = useLocalStorageState<string | undefined>(
        "AppAccount"
    )

    return{
        token,
        account,
        setToken,
        setAccount,
    }
}